﻿<%@ Page Title="Quản lý Dịch vụ" Language="C#" MasterPageFile="~/Manager.Master" AutoEventWireup="true" CodeBehind="ServiceManager.aspx.cs" Inherits="Manager.ServiceManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPage" runat="server">
    <div class="breadcrumb">
 <a href="Default.aspx">Trang quản trị</a> >> <a href="ServiceManager.aspx">Quản lý Dịch vụ</a>
</div>

    <div class="box" style="float:left; width: 100%">
        <div class="heading">
            <h1><img src="Styles/Img/order.png" alt="" />Quản lý Dịch vụ</h1>
            <div class="buttons">
                &nbsp;&nbsp;<asp:Button 
                ID="btnNew" runat="server" Text="Viết bài mới" BackColor="#003A88" 
                CssClass="button" onclick="btnNew_Click" />
            </div>
        </div>

        <div class="content">
            
                           <br />
            
            <table class="list">
                <thead>
                    <tr>
                        <td style="width: 4%; text-align:center">STT</td>
                        <td style="width: 35%" class="center">Tiều đề</td>
                        <td style="width: 35%" class="center">Miêu tả sơ lược</td>
                        <td style="width: 10%" class="center">Link</td>
                        <td style="width: 8%" class="center">Trạng thái</td>
                        <td style="width: 8%" class="center">Chức năng</td>
                    </tr>
                </thead>
                <tbody>
                    <tr class="filter">
                        <td colspan="7">&nbsp;</td>
                    </tr>
                    <tr id="noNews" runat="server" visible="false">
                        <td colspan="7">&nbsp;&nbsp;&nbsp;&nbsp;<span style="font: 20px; color: Red;">Chưa bản tin nào.</span></td>
                    </tr>
                
                            <asp:Repeater ID="rptService" runat="server" 
                        onitemcommand="rptService_ItemCommand" 
                        onitemdatabound="rptService_ItemDataBound" DataMember="ServiceID">
                                <ItemTemplate>
                                            <tr>
                                                <td style="width: 4%; text-align:center"><%#Eval("ServiceID")%></td>
                                                <td style="width: 35%" class="center"><a href="ViewService.aspx?ID=<%#Eval("ServiceID") %>"><%#Eval("ServiceName")%></a></td>
                                                <td style="width: 35%" class="center"><asp:Label ID="lblDescription" runat="server"></asp:Label></td>
                                                <td style="width: 10%" class="center"><%#Eval("ServiceURL") %></td>
                                                <td style="width: 8%" class="center"><asp:Label ID="lblStatus" runat="server"></asp:Label></td>
                                                <td style="width: 8%" class="center">
                                                    <asp:LinkButton ID="lbtView" CommandArgument='<%#Eval("ServiceID") %>' CommandName="View" runat="server"><img src="Styles/Img/edit.png" alt="Xem và Sửa đổi" title="Xem và Sửa đổi" /></asp:LinkButton>&nbsp;&nbsp;
                                                    <asp:LinkButton ID="lbtLock" CommandArgument='<%#Eval("ServiceID") %>' CommandName="Lock" runat="server">
                                                        <asp:Image ID="imgLock" ToolTip="Khóa" ImageUrl="~/Styles/Img/unlock.png" runat="server" /></asp:LinkButton>&nbsp;&nbsp;
                                                    <asp:LinkButton ID="lbtDel" CommandArgument='<%#Eval("ServiceID") %>' CommandName="Del" OnClientClick='return confirm("Bạn có chắc chắn muốn xóa???")' runat="server"><img src="Styles/Img/delete.png" alt="Xóa" title="Xóa" /></asp:LinkButton>&nbsp;&nbsp;
                                                </td>
                                            </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                    <tr class="filter">
                        <td colspan="7">&nbsp;</td>
                    </tr>
                </tbody>
            </table>

            
        </div>
    </div>
</asp:Content>
